<template>
	<view>
		<view class="flex-ju-b posiab pl30" :style="{paddingTop:shh+5+'px'}">
			<uni-icons @click="back" type="left" size="22" color="#000"></uni-icons>
			<view class="flex-a-i"></view>
			<view></view>
		</view>
		
		<image mode="widthFix" class="image posiab top0" src="/static/ceshibg.png"></image>
		<view class="flex-ju-c pt15vh ">
			<image mode="widthFix" class="image width608 posiab" :src="imgurl+'ceshiimg.png'"></image>
			<view class="wh650-520 ra50  posire">
				<view class="flex-ju-c size28 mt150 bold color222">本次成绩</view>
				<view class="flex-ju-c colorFD2F55 size88 bold600 mb20 ">{{grade}}</view>
				<view class="flex-ju-c color666 size28">共{{gong}}题，答对{{num}}题，答错{{gong - num}}题</view>
				
				<view class="con">
					<view class="con flex-ju-b color666 bgfff pg30 ra30 mt110 pt30 ">
						<view>历史最佳 <text class="colorFD2F55 bold">{{jia}}</text></view>
						<view @click="navto('record')" class="bgCFCBFF colorfff pg5-10 ra10 size24">历史成绩</view>
					</view>
				</view>
			</view>
			
		</view>
		<view class="con mt20vh posire width608">
			<view @click="back" class="flex-ju-c colorfff bgFD2F55 height100 size36  ra20">
				重新测试
			</view>
			<view @click="reeulk" class="flex-ju-c mt30 borderD8D8D8 color222 height100 size36 ra20">
				返回首页
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				grade:"",
				gong:"",
				jia:"",
				num:""
			}
		},
		onLoad(option) {
			this.grade = option.grade
			this.gong = option.num
			this.num = option.grade / 100
		 
			this.jia = uni.getStorageSync('grade')
		},
		methods: {
			reeulk(){
				uni.reLaunch({
					url:"/pages/index/index"
				})
			}
		}
	}
</script>

<style>
page{
	background: #f9f9f9;
}
</style>
